<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>数据库备份</title>
    <hdjs />
    <js file= '__PUBLIC__/js/mod.base.js,__PUBLIC__/js/mod.backup.js' />
    <css file= '__PUBLIC__/css/mod.base.css' />
    <script>
    	var optimizeUrl = "{:U('optimize')}";
    	var repairUrl = "{:U('repair')}";
    </script>
</head>
<body>
    <form action="{:U('backup')}" method="get" class="hd-form" name="form" enctype='multipart/form-data' >
       <div class="hd-menu-list">
            <ul>
                <li class="active">
                    <a href="javascript:;">备份数据库</a>
                </li>
                <li >
                    <a href="{:U('Backup/index')}">备份列表</a>
                </li>
            </ul>
        </div>
        <div class="hd-title-header">数据库备份</div>
        <div class="right_content">
            <table class="hd-table hd-table-form" >
                <tbody>
                    <tr>
                        <th class="hd-w100">
                           		 备份分卷大小
                            	<span class="star">*</span>
                        </th>
                        <td>
                            <input type="text" name="size" class="hd-w200" value="200"> kb
                        </td>
                    </tr>
                </tbody>
             </table>
       		</div>
			<input type="submit" value="开始备份" class="hd-btn hd-btn-sm">
			<table class="hd-table hd-table-form" >
			 <thead>
				<tr>
				    <td class="hd-w50">
				        <label><input type="checkbox" id="selectAllContent" checked="checked"></label>
				    </td>
				    <td>表名</td>
				    <td>类型</td>
				    <td>编码</td>
				    <td>记录数</td>
				    <td>使用空间</td>
				    <td>碎片</td>
				    <td class="hd-w60">操作</td>
				</tr>
			</thead>
			<tbody>
	            <volist name='data.table' id='vo'>
	            	<tr>
				    <td class="hd-w50">
				     <input type="checkbox" value="{$key}" name="table['{$key}']" checked="checked" />
				    </td>
				    <td>{$vo.tablename}</td>
				    <td>{$vo.engine}</td>
				    <td>{$vo.charset}</td>
				    <td>{$vo.rows}</td>
				    <td>{$vo.dataSize}</td>
				    <td>{$vo.dataFree}</td>
				    <td class="hd-w60">
				    	<a href="{:U('optimize',array('table'=>$vo['tablename']))}">优化</a> | <a href="{:U('repair',array('table'=>$vo['tablename']))}">修复</a> 
				    </td>
					</tr>
	            </volist>
            </tbody>
			</table>
			<input type="button" class="hd-btn hd-btn-sm" onclick="optimize()" value="批量优化">
			<input type="button" class="hd-btn hd-btn-sm" onclick="repair()" value="批量修复">
        </form>

	





</body>
</html>